package com.zx.service;

import com.zx.bean.Treat;
import com.zx.dao.TreatDao;
import com.zx.dao.impl.TreatDaoImpl;

import java.util.Date;

public class TreatService {
    private static TreatDao dao=new TreatDaoImpl();
    public static boolean insert(String timelong, String symptopm, String suggest, String name,String treatTime){
        return dao.insert(timelong,symptopm,suggest,name,treatTime);
    }
    public static Treat findByName(String name){
        return dao.findByName(name);
    }
}
